<?php 
include_once('./configs/config.php');
if (strlen($_COOKIE["liheid"])==0){
$lihenum=date("imHsd") . rand(100,999);
setcookie("liheid", $lihenum, time()+360000);
$kaiid=mysql_query("INSERT INTO 510_weblink (`id` ,`w_name` ,`w_url` ,`w_introduction` )VALUES (NULL , '".$lihenum."', '".$_SERVER["REMOTE_ADDR"]."', '".date("Y-m-d H:i")."');");
$isnewlihe="y";
}else{
$lihenum=$_COOKIE["liheid"];
}

?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>您需要<?php echo $wxrs?>位朋友帮你拆开礼盒</title>
<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<script type="text/javascript" src="template/wb/js/zepto.js"></script>
<style type="text/css">
body{padding:0;margin:0;font-size:14px;font-family:Arial;}h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td{margin:0;padding:0;}dl,dt,dd,ul,li,ol{list-style:none;}img{border:0;}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden}
body{background:url(template/wb/images/tb.png) repeat-x;background-size:1px 324px;}
.main{width:100%;}
.main .box{width:100%;height:324px;background:url(template/wb/images/bg.jpg) center 0 no-repeat;background-size:320px 324px;}
.main .title{line-height:24px;font-size:18px;color:#fff;text-align:center;text-shadow:1px 1px 0 #d28ea7;padding:15px 0;}
.main .title b{font-weight:bold;}
.main .cont{width:100%;height:250px;text-align:center;overflow:hidden;}
.main p{width:150px;margin:0 auto;padding-top:10px;line-height:1.5em;font-size:14px;color:#333;text-align: center;}
.main .btn{width:145px;height:49px;line-height:49px;background:url(template/wb/images/button_1.png) no-repeat;background-size:145px 49px;color:#fff;font-size:18px;text-align:center;margin:0 auto;}
#grey_bg{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(51,51,51,0.8);z-index:1000;display:none;}
#grey_bg p{float:right;width:320px;text-align:center;color:#fff;font-size:20px;line-height:1.4em;background:url(template/wb/images/jt.png) 250px 10px no-repeat;background-size:40px 40px;padding-top:55px;}
</style>

</head>

<body><link rel="stylesheet" type="text/css" href="bdad.css">
<div class="main">
  <div class="box">
		<div class="title">马上分享到朋友圈，<br /><b>邀请<?php echo $wxrs?>位好友</b>帮助您拆开礼盒。</div>
		<div class="cont"><img src="template/wb/images/box4.png" width="210" height="210" /></div>
	</div><!--/box-->
	<p>获得小伙伴的帮助后记得回到这里来领奖哦！</p>
	<div class="btn" onClick="showBg(1)">马上分享</div>
	<div class="grey_bg" id="grey_bg" onClick="showBg(0)">
		<p>点击右上角【发送给朋友】<br />【分享到朋友圈】拉上小伙伴<br />帮你拆礼物吧</p>
	</div>
</div><!--/main-->
<script type="text/javascript">
var mebtnopenurl = "";
var timeLineLink = "<?php echo $wxwz?>back.php?key=<?php echo $lihenum?>";
function showBg(n){
	if(n){
		$("#grey_bg").show();
	}else{
		$("#grey_bg").hide();
	}

}
</script>
<script type="text/javascript" src="template/wb/js/share_2.js"></script>


<div style="display:none;"></div>
</body>
</html>
